package com.cuit.xsc.weishare.activity;



import com.cuit.xsc.weishare.R;

import android.content.Intent;
import android.os.Bundle;
import android.view.animation.AlphaAnimation;
import android.view.animation.Animation;
import android.view.animation.Animation.AnimationListener;
import android.view.animation.RotateAnimation;
import android.widget.ImageView;

public class LogoAct extends BaseActivity
{
	ImageView imageView;
	@Override
	protected void onCreate(Bundle savedInstanceState)
	{
		super.onCreate(savedInstanceState);
		setContentView(R.layout.logo);
		imageView = (ImageView) findViewById(R.id.logo_img);
//		Animation animation = new AlphaAnimation(0f,1f);
		Animation animation =  new RotateAnimation ( 0, +360, Animation.RELATIVE_TO_SELF, 0.5f, Animation.RELATIVE_TO_SELF, 0.5f ); 

		animation.setDuration(2000);
		animation.setAnimationListener(new AnimationListener()
		{
			
			@Override
			public void onAnimationStart(Animation animation)
			{
				
				
			}
			
			@Override
			public void onAnimationRepeat(Animation animation)
			{
				// TODO Auto-generated method stub
				
			}
			
			@Override
			public void onAnimationEnd(Animation animation)
			{
				Intent intent = new Intent(LogoAct.this,LoginAct.class);
				startActivity(intent);
				LogoAct.this.finish();
				
			}
		});
		imageView.setAnimation(animation);
		
	}

	

}